/*******************************************************************************
 * @(#)Org.java 2018年09月27日 00:35
 * Copyright 2018 upbos.com. All rights reserved.
 *******************************************************************************/
package com.upbos.data.persistence;

import com.upbos.data.persistence.annotation.Column;
import com.upbos.data.persistence.annotation.Id;
import com.upbos.data.persistence.annotation.Table;
import lombok.Data;

import java.util.Date;

/**
 * <b>Application name：</b> Org.java <br>
 * <b>Application describing： </b> <br>
 * <b>Copyright：</b> Copyright &copy; 2018 upbos.com 版权所有。<br>
 * <b>Company：</b> upbos.com <br>
 * <b>Date：</b> 2018年09月27日 00:35 <br>
 * <b>author：</b> <a href="mailto:wangjz@miyzh.com"> wangjz </a> <br>
 * <b>version：</b>V1.0.0 <br>
 */
@Table
@Data
public class Org {
    @Id
    private String id;

    //@Id(value = "id2", idType = IdType.UUID)
    private String id2;

    /**
     *
     */
    @Column("code_")
    private String code;

    @Column
    private String name;

    @Column(value = "full_name", unique=true)
    private String fullName;

    @Column("remark")
    private String remark;

    @Column("parent_id")
    private Integer parentId;

    @Column("create_date")
    private Date createTime;

}